<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>

    // var obj = {
    //     name:"damu",
    //     wife:"18岁的周冬雨",
    //     marry(){
    //         console.log(this.name +" ♥ "+ this.wife)
    //     }
    // }

    // 使用bind函数来解决隐式丢失
    // setTimeout(obj.marry.bind(obj),2000)


    setTimeout(document.write.bind(document,"damu love zdy"),2000)
</script>
</html>